Skip to content

Conversation

@rmosolgo
Copy link
Owner

@rmosolgo rmosolgo commented Jan 6, 2026

Fixes the case mentioned in #4924 (comment)

@rmosolgo rmosolgo added this to the 2.5.17 milestone Jan 6, 2026
def self.add_space_between_numbers_and_names(query_str)
if query_str.match?(INVALID_NUMBER_FOLLOWED_BY_NAME_REGEXP)
query_str.gsub(INVALID_NUMBER_FOLLOWED_BY_NAME_REGEXP, "\\k<num> \\k<name>:")
query_str.gsub(INVALID_NUMBER_FOLLOWED_BY_NAME_REGEXP, "\\k<leading>\\k<num> \\k<name>:")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two other false positives that appear to be fixed:

query($shouldQueryB2BCatalogs: Boolean = false)
query($shouldQueryB2 BCatalogs: Boolean = false)
{ customers(query: "created_at:>='2025-11-17T00:00:00.000Z'") { nodes { id } } }
{ customers(query: "created_at:>='2025-11-17 T00:00:00.000Z'") { nodes { id } } }

@rmosolgo
Copy link
Owner Author

rmosolgo commented Jan 7, 2026

Thanks for checking it out! I'm going to sort out these issues with the minitest dependency after merging.

@rmosolgo rmosolgo merged commit 5065756 into master Jan 7, 2026
11 of 13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants